package net.xxcxcxcx.xc_enhancedmob.render.boss_bar.unit.type.reality;

import net.minecraft.nbt.NbtCompound;
import net.xxcxcxcx.xc_enhancedmob.render.TextureElement;

import java.util.concurrent.CopyOnWriteArrayList;

public class TestClientCustomBossBar extends BaseBossBarRealityType {
    public TestClientCustomBossBar() {
        CopyOnWriteArrayList<TextureElement> layers = new CopyOnWriteArrayList<>();
        layers.add(new TextureElement("xc_enhancedmob:textures/gui/boss_bar/boss_bar_tex.png", 2, 10, 124, 4, 256, 256).randomColor(0xff87CECA, 50));
        layers.add(new TextureElement("xc_enhancedmob:textures/gui/boss_bar/boss_bar_tex.png", 2, 10, 124, 4, 256, 256).randomColor(0xff87CECA, 50));
        layers.add(new TextureElement("xc_enhancedmob:textures/gui/boss_bar/boss_bar_tex.png", 2, 10, 124, 4, 256, 256).randomColor(0xff87CECA, 50));
        layers.add(new TextureElement("xc_enhancedmob:textures/gui/boss_bar/boss_bar_tex.png", 2, 10, 124, 4, 256, 256).randomColor(0xff87CECA, 50));
        layers.add(new TextureElement("xc_enhancedmob:textures/gui/boss_bar/boss_bar_tex.png", 2, 10, 124, 4, 256, 256).randomColor(0xff87CECA, 50));
        layers.add(new TextureElement("xc_enhancedmob:textures/gui/boss_bar/boss_bar_tex.png", 2, 10, 124, 4, 256, 256).randomColor(0xff87CECA, 50));
        //layers.add(new TextureElement("xc_enhancedmob:textures/gui/boss_bar/boss_bar_tex.png", 2, 18, 124, 4, 256, 256).randomColor(0xff87CEDA, 30));
        setLayers(layers);
        setMeterOffsetX0(2);
        setMeterOffsetY0(2);
        setMeterOffsetX1(-2);
        setMeterOffsetY1(-2);
        setBackground(new TextureElement("xc_enhancedmob:textures/gui/boss_bar/boss_bar_tex.png", 0, 0, 128, 8, 256, 256).randomColor(0xFFFF7F50, 0));
        setIcon(new TextureElement("xc_enhancedmob:textures/gui/damage_icon/damage_icon_tex.png", 16, 0, 16, 16, 256, 256));
        setHasIcon(true);
    }

    public TestClientCustomBossBar(NbtCompound nbtCompound) {
        this();
    }
}

